/*
 * Copyright 2016 Wealth Inc. All rights reserved.
 */
 package com.wealth.bank.service.impl;

import java.util.List;

import iaas.service.impl.BaseServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.wealth.bank.entity.Article;
import com.wealth.bank.repository.ArticleDao;
import com.wealth.bank.service.IArticleService;

/**
 * @author chan
 * @version 1.0
 * @since 1.0
 */
 
@Component
public class ArticleServiceImpl extends BaseServiceImpl<Article> implements IArticleService{

	@Autowired
	private ArticleDao articleDao;

	//查询银行文章
	@Override
	public List<Article> getArticlePag(Integer id,Integer status,Long corpId) {
		
		return articleDao.getArticlePag(id, status, corpId);
	}
	//查询某分类下银行文章
	@Override
	public List<Article> getArticlePagByCategoryId(Integer id, Integer status,
			Long category_id, Long corpId) {
		return articleDao.getArticlePagByCategoryId(id, status, category_id, corpId);
	}
	
	//查询某分类下银行文章(加载更多)
	@Override
	public List<Article> getArticlePagByCategoryIdMove(Integer id,
			Integer status, Long category_id, Long corpId) {
		return articleDao.getArticlePagByCategoryIdMove(id, status, category_id, corpId);
	}

	
	
	
	
}
